package com.jadcon.bedbreakfast.domain;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;



@Service("guestService")
public class guestServiceImpl implements guestService {

	@Autowired
	private GuestRepository guestRepository;
	
	
	public Guest findGuestByFullname(String fullname) {
		return guestRepository.findGuestByFullname(fullname);
	}

	public List<Guest> getGuestList() {
		return guestRepository.getGuestList();
	}

	public void save(Guest guest) {
		guestRepository.save(guest);
	}

}
